/**
 * 
 */
package com.secfound.soccer.shared.db;

import java.io.Serializable;

import com.google.code.twig.annotation.Id;

/**
 * Soccer matchs to place bets
 * @author alfonso.ayala
 *
 */
public class Game implements Serializable{
	
	public String getOption() {
		return option;
	}
	public void setOption(String option) {
		this.option = option;
	}
	/**
	 * 
	 */
	private static final long serialVersionUID = -7675266114368268368L;

	@Id
	String id;
	String aTeam;
	String aScore;
	String bTeam;
	String bScore;
	String startTime;
	String endTime;
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	String stage;
	String city;
	String stadium;
	String option;
	boolean past;
	String status;
	
	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public boolean isPast() {
		return past;
	}
	public void setPast(boolean past) {
		this.past = past;
	}
	
	public Game(String aTeam, String aScore, String bTeam, String bScore,
			String startTime, String stage, String city, String stadium) {
		super();
		this.aTeam = aTeam;
		this.aScore = aScore;
		this.bTeam = bTeam;
		this.bScore = bScore;
		this.startTime = startTime;
		this.stage = stage;
		this.city = city;
		this.stadium = stadium;
		this.id=aTeam+"|"+bTeam+"|"+startTime;
	}
	public String getaTeam() {
		return aTeam;
	}
	public void setaTeam(String aTeam) {
		this.aTeam = aTeam;
	}
	public String getaScore() {
		return aScore;
	}
	public void setaScore(String aScore) {
		this.aScore = aScore;
	}
	public String getbTeam() {
		return bTeam;
	}
	public void setbTeam(String bTeam) {
		this.bTeam = bTeam;
	}
	public String getbScore() {
		return bScore;
	}
	public void setbScore(String bScore) {
		this.bScore = bScore;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getStage() {
		return stage;
	}
	public void setStage(String stage) {
		this.stage = stage;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String toString(){
		return aTeam +" "+ aScore+ " "+ bTeam +" "+ bScore+" "+ startTime+ " "+ stage+ " "+ city+ " "+ stadium;
	}

	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getStadium() {
		return stadium;
	}
	public void setStadium(String stadium) {
		this.stadium = stadium;
	}
	public Game() {
		super();
	}
}
